package com.qfedu.fmmall.sign.service.feign;




import com.qfedu.fmmall.entity.Users;
import com.qfedu.fmmall.sign.service.fallback.UserLoginFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author : yanBin
 * @date :2022/1/20 15:21
 */
//表示接口调不通就执行OrderFallback类中的同名方法
@Repository
@FeignClient(value = "user-login-check", fallback = UserLoginFallback.class)
public interface UserLoginClient {
    @GetMapping("/user/check")
    List<Users> getCheck(@RequestParam("username") String username);
}
